Reproducible workflows
2024-02-15
RStudio (Projects & Setting/preferences)
Generate reports from code (Quarto Scientific Publishing system)
You should have the latest version of Quarto!!
R for Lunch: a lunchtime learning series
See Also: Online Resources: (Rfun | CDVS resources)
Data Management (Plans, Reproducibility, Repositories)
Data Science
Data Visualization
GIS and Spatial Analysis
Data Sources
Code in RStudio
Report types: A select list of Quarto output formats
Use Git and GitHub for version control, code sharing, and collaboration
Global options > Code ^^<- Global options > GeneralFull Instructions
Steps (simplified)
In CLI (terminal, powershell, bash, etc.): quarto publish (For select Quarto project types)
Choose a destination (e.g. quarto.pub or netlify.com)
quarto create > project > manuscript
useths::use_git()_quarto.yml: change jats: default to pdf: default
Create reproducible environments for your R projects
renv::init()renv::snapshot()renv::restore()
The Binder project makes it easy to share compute environments. This is documented very well at Quarto.
In essence:
quarto use binderaskData@duke.edu
https://library.duke.edu/data
https://is.gd/littleconsult
five essential {dplyr} data wrangling verbs
data pipes inside code-chunks
https://intro2r.library.duke.edu/ > Exercises > Link out > Green Code button > Download ZIP
Then, Unzip (i.e. Expand) the folder (on your local file system)
Then, double click the rforlunch_exercises.Rproj file
From RStudio the Files tab, open the 01_dplyr.qmd
rforlunch_exercises project > Files Tab > Answers folder
RStudio > Quarto Notebook > Insert > Citation
Example DOI: 10.18637/jss.v059.i10